﻿// Decompiled with JetBrains decompiler
// Type: STT.DialogBoxHelpAbout
// Assembly: SymbolTypeViewer, Version=1.0.0.6, Culture=neutral, PublicKeyToken=null
// MVID: 5FAA967F-23AD-4C8B-A7DB-67BC80ACEEA3
// Assembly location: E:\VStart\安全工具\SymbolTypeViewer_v1.0_beta\SymbolTypeViewer_1_0_0_6\SymbolTypeViewer.exe

using System;
using System.ComponentModel;
using System.Windows.Forms;

namespace STT
{
    public class DialogBoxHelpAbout : Form
    {
        private IContainer components;
        private Button button_Ok;
        private GroupBox groupBox1;
        private Label label2;
        private Label label1;
        private GroupBox groupBox2;
        private RichTextBox richTextBox_Help;
        private RadioButton radioButton_English;
        private RadioButton radioButton_French;

        public DialogBoxHelpAbout()
        {
            this.InitializeComponent();
            try
            {
                this.richTextBox_Help.LoadFile(Program.help_symboltypeviewer_path);
            }
            catch (Exception ex)
            {
                this.richTextBox_Help.Text = "The help file was not found!\n" + Program.help_symboltypeviewer_path;
            }
        }

        private void button_Ok_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void radioButton_CheckedChanged(object sender, EventArgs e)
        {
            if (this.radioButton_English.Checked)
            {
                this.richTextBox_Help.LoadFile(Program.help_symboltypeviewer_path);
            }
            else
            {
                if (!this.radioButton_French.Checked)
                    return;
                this.richTextBox_Help.LoadFile(Program.aide_symboltypeviewer_path);
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && this.components != null)
                this.components.Dispose();
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.button_Ok = new System.Windows.Forms.Button();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.label2 = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.richTextBox_Help = new System.Windows.Forms.RichTextBox();
            this.radioButton_English = new System.Windows.Forms.RadioButton();
            this.radioButton_French = new System.Windows.Forms.RadioButton();
            this.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.SuspendLayout();
            //
            // button_Ok
            //
            this.button_Ok.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.button_Ok.Location = new System.Drawing.Point(12, 451);
            this.button_Ok.Name = "button_Ok";
            this.button_Ok.Size = new System.Drawing.Size(56, 21);
            this.button_Ok.TabIndex = 0;
            this.button_Ok.Text = "确定";
            this.button_Ok.UseVisualStyleBackColor = true;
            this.button_Ok.Click += new System.EventHandler(this.button_Ok_Click);
            //
            // groupBox1
            //
            this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                  | System.Windows.Forms.AnchorStyles.Right)));
            this.groupBox1.Controls.Add(this.label2);
            this.groupBox1.Controls.Add(this.label1);
            this.groupBox1.Location = new System.Drawing.Point(12, 11);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(641, 68);
            this.groupBox1.TabIndex = 3;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "关于";
            //
            // label2
            //
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(6, 45);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(59, 12);
            this.label2.TabIndex = 1;
            this.label2.Text = "作者:时光";
            //
            // label1
            //
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(6, 23);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(161, 12);
            this.label1.TabIndex = 0;
            this.label1.Text = "调试符号查看器 支持x32/x64";
            //
            // groupBox2
            //
            this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                  | System.Windows.Forms.AnchorStyles.Left)
                  | System.Windows.Forms.AnchorStyles.Right)));
            this.groupBox2.Controls.Add(this.richTextBox_Help);
            this.groupBox2.Location = new System.Drawing.Point(12, 106);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(641, 340);
            this.groupBox2.TabIndex = 4;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "帮助";
            //
            // richTextBox_Help
            //
            this.richTextBox_Help.BackColor = System.Drawing.Color.White;
            this.richTextBox_Help.Dock = System.Windows.Forms.DockStyle.Fill;
            this.richTextBox_Help.Location = new System.Drawing.Point(3, 17);
            this.richTextBox_Help.Name = "richTextBox_Help";
            this.richTextBox_Help.ReadOnly = true;
            this.richTextBox_Help.Size = new System.Drawing.Size(635, 320);
            this.richTextBox_Help.TabIndex = 0;
            this.richTextBox_Help.Text = "";
            //
            // radioButton_English
            //
            this.radioButton_English.AutoSize = true;
            this.radioButton_English.Checked = true;
            this.radioButton_English.Location = new System.Drawing.Point(12, 85);
            this.radioButton_English.Name = "radioButton_English";
            this.radioButton_English.Size = new System.Drawing.Size(47, 16);
            this.radioButton_English.TabIndex = 5;
            this.radioButton_English.TabStop = true;
            this.radioButton_English.Text = "英语";
            this.radioButton_English.UseVisualStyleBackColor = true;
            this.radioButton_English.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged);
            //
            // radioButton_French
            //
            this.radioButton_French.AutoSize = true;
            this.radioButton_French.Location = new System.Drawing.Point(77, 85);
            this.radioButton_French.Name = "radioButton_French";
            this.radioButton_French.Size = new System.Drawing.Size(59, 16);
            this.radioButton_French.TabIndex = 5;
            this.radioButton_French.Text = "法兰西";
            this.radioButton_French.UseVisualStyleBackColor = true;
            this.radioButton_French.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged);
            //
            // DialogBoxHelpAbout
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(665, 482);
            this.Controls.Add(this.radioButton_French);
            this.Controls.Add(this.radioButton_English);
            this.Controls.Add(this.groupBox2);
            this.Controls.Add(this.groupBox1);
            this.Controls.Add(this.button_Ok);
            this.Name = "DialogBoxHelpAbout";
            this.Text = "About";
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();
        }
    }
}